#!/bin/bash
if [ -d "${RSYNCD_PATH}" ]; then 
    /bin/ps -ef|grep 'rsync --daemon'|grep -v 'grep' |grep -c rsync
fi